<?php
	session_start();
	error_reporting(E_ALL && ~E_NOTICE);
	if($_GET['a']=='logout'){
			$_SESSION['user']=null;
			unset($_SESSION['user']);
	}
		

?>
<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" type="text/css" href="denglu.css">
	<title>会员登录 | YOHO!BUY 有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证</title>
</head>
<body>
	
	<div id="header">
		<a href="../YOHO PJ1/index.php"><img src="nhcziuiqe112.jpg"></a>
	<div id="header">
	<div id="left">
		<img src="baida111.jpg">
	</div>
	
	<div id="zhongxian">
		<img src="zhongxian.jpg">
	</div>
	
	<div id="right">
		<div id='title1'><font>会员登录</font></div>
		<div id='title2'><font>中国+86</font></div>
		<div id="shuru">
		<form action='dologin.php' method='post'>
		<input type='hidden' name='url' value='<?php echo $_SERVER['HTTP_REFERER'];?>'>
			请输入账户:<input type="text" value="" name='name' placeholder="请输入用户名或邮箱"><br/>
			请输入密码:<input type="password" value="" name='password' placeholder="请输入密码"><br/>
			<img src="../../../public/code.php" onclick="this.src='../../../public/code.php?id='+Math.random(); ">
			&nbsp;&nbsp;&nbsp;<input style="width:90px " type="text" name="code" size="5"  placeholder="输入验证码"><br/>
			<input type="submit" value="登录" style="height:45px;width:260px;background-color:red;color:white;" >			
		</div>
		<div id="title3"><font>记住登录状态</font></div>
		<div id="title4"><a href="../zhuce/zhuce.php"><font>忘记密码?|快速注册</font></a></div>
	</div>
	
	<div id="foot">
		<a href="#"><img src="hkinczio.jpg"></a>
	</div>
	
	<?php
		//输出错误信息		
		$_GET['errno'] = empty($_GET['errno']) ? '':$_GET['errno'];
		switch($_GET['errno']){
			case 1:
			echo "<h2 style='color:red;'>用户不存在</h2>";
			break;
			case 2:
			echo "<h2 style='color:red;'>密码错误</h2>";
			break;
			case 3:
			echo "<h2 style='color:red;'>验证码错误</h2>";
			break;
		}
		

	?>
</body>